Skip to main content

Full text of "Wireless"

See other formats

Networked On Air Light 

Make] Projects 

hhiiilH ho/ 1 !/ tuMaal/ chare r\icf*f\\tat* 

build, hack, tweak, share, discover,- 

Networked On Air Light 

Written By: Matt Richardson 



Rotary Tool (1) 

Soldering iron (1) 

Wire cutter/stripper (1) 

XBee Adapter (1) 

For configuring your XBee radio. Many 
options available. Also can use your 
Arduino as a serial pass through. 

© Make Projects 


Be sure you're ordering part number X2- 
Z1 1-EC-A as there are a lot of variants 
on this product. 

XBee Series 2 Wireless Module (1) 
There are lots of variants of this part. 
You can't go wrong with part number 

• Arduino microcontroller (1) 

• XBee Shield (1) 
Any other kind of XBee adapter will 
work. This one sits nicely on top of the 

• Wall-Mount Oval Bulkhead Light (1) 
Any wall -mount light will do. The style of 
this one goes nicely with this project. 

Relay Circuit Board (1) 
Make your own or order a premade 
relay. Used to close the AC circuit using 
the digital pin of the Arduino. 

• Cradled Wood Panel (1) Page 1 of 9 

Networked On Air Light 

Available at art supply stores near the 

Peel & Stick Vinyl Letters (1 pkg) 
Can be found at an office supply or art 
supply store. 

Lamp cord (1) 

Cube tap extension cord (1) 

Velcro (6") 

Or use another mounting method such 

as standoffs or mounting tape. 

Lightbulb (1) 

Look for "party" light bulbs 


You may have seen those "On Air" lights at film, radio or television studios. Now that anyone 
can broadcast video over the internet, it's time to learn how to build your own "Now 
Streaming" light that even wirelessly checks to see if you're streaming! 

This guide will show you how to: 

Set up the XBee Internet Gatewav Connect your XBee to an Arduino to poll a web server for dataUse Ust ream's API to 
check if a channel is broadcastingUse a relay to control an incandescent light fixtureMount the light fixture a wood 

© Make Projects 

Page 2 of 9 

Networked On Air Light 

Step 1 — Mount the Light Fixture 

• Using your rotary tool, cut a hole in the cradled panel for the light fixture's wires and pull 
the wires through to the back. 

Step 2 — Connect the Relay in Line with the Light Fixture 

• Solder one wire from the light 
fixture to the relay. 

• Cut the lamp cord to about 10 
inches from the plug, split and trim 
the wires. 

• Connect one lamp cord wire to the 
relay and the other to the free lamp 

© Make Projects 

Page 3 of 9 

Networked On Air Light 

Step 3 — Set Up the XBee Internet Gateway 

*> -> O © tc-de.9eo9le.tom to; xig/ 

ft * 

Vig xig 

* XBee I ntamet Gateway fw the Digi GonisBclPod 
PraJeetHoma Downloads M fsauos Sounco 

f i>. ,|rr. i (JfOittB i 

Summery updates People 

Project Information 

Code I i cense 
QNI J l « ,y QPL 


XBee, Python. 
DiniCor^ottPcft. ZigBw 

i qt?*9l..®q nlEl. c gii. 
Jcrian.H. .filarial cor- 
1 CpittmiUef 

i Is a powerful Python program for the DHaLConnectPct X series of RF-to- 

ip gateways which anew* xeoe end **rie*& lo access 111* internal resourc** *ueh as web page*. 

The ofojecl was initialed by Rob Fafwli at IIP; im piemen ted by Jordan Husney 
http:fljordan husnayxom and Ted Hayes httpiffloo: liminastudio com. 

vl . 1 . 1 OS-Fefo-201 1 Bug fixes: T URL qw*y string Inincation fix, URL parse fa 
1/1.1.0 17-Nov-2010 Added trar-smissiwi reliability layer, pug fixes 
v1 .0.0 25-Sep-20 1 I nibial ie ease (or Maker Fairs NYC 

fc Downleads 



Show all » 

4r -> O A © 10.0. l.L7/conflg/app!ications/python - .files. htm 


XBee Network 


Remote Manag*m*rt[ 




Connect Port X2 Configuration and Management 

Python Configuration 

* Python Files 
Upload Rte 

Upload Python programs 
Upload File: [j 

Event Logging 

File Wftfiigemeftt 
Sadcu p/ Restore 
Update Firmware- 
Factory Default Settings 
System Information 

ChMit Flic J No Jilt ehoMit 

Menage He* 
Action F.lcN,imc 


B 1 117 bytes 

O 144321 bytes 

B _wa-t'P 775*7 bytes 

O xigpy 19015 bytes 


► Auto-start Settin gs 

• Download the XBee Internet Gateway software . 

• Use an Ethernet cable to conenct the ConnectPort X2 to your router. Determine its IP 
address by using the software on the CD included with the ConnectPort or by checking 
your router's log for the MAC address. 

• The ConnectPort X2's MAC address is printed on the bottom of the unit. 

• Enter the ConnectPort's IP address into your web browser's location bar. 

• Under the Python menu, upload the two XBee Internet Gateway files: and 

_xig . zip. 

• Click "Auto-start settings" and add and enable it. Apply those settings. 

• Under the Reboot menu, click "Reboot." 

© Make Projects 

Page 4 of 9 

Networked On Air Light 

Step 4 — Configure the XBee Radio 

© Make Projects Page 5 of 9 

Networked On Air Light 






a u m © 

vton Opcions We* Hex Help 

uibsfnil-ASOOeitM f 1LS20O8-N-1 

ftTS O DTft A DCD 

• Attach the XBee to the USB 
adapter and launch a terminal 
program such as CoolTerm . 

• Select the port that matches your 
USB adapter and select "Local 
echo" and click OK and then 

• In the terminal window, type "+++" 
to enter command mode. The 
modem will respond "OK" 

• Command mode is active 
for 10 seconds after you 
type "+++" or hit enter after an AT 
command. If you take too long, 
type the plus signs again to go 
back into command mode. 

• Type atid aaaa to set the PAN 
ID to match your gateway. The 
modem will respond "OK". 

• Type atdl o to set the low byte of 
the destination address to the 
ConnectPort X2, which is the 
coordinator of the network. Zigbee 
Network Coordinators always have 
the low address of 0. The modem 
will respond "OK". 

• Type atdh o to set the high byte 
of the destination address to the 
ConnectPort X2, which is the 
coordinator of the network. Zigbee 
Network Coordinators always have 
the high address of The modem 
will respond "OK". 

© Make Projects 

Page 6 of 9 

Networked On Air Light 

Step 5 — Configure the XBee Radio, Continued 


m u 


K-ew Op*n Sav* Conne-ci Disconnect Clear Data Options View Hex help 





uitncnal-AS0Q*n*n / 115JQ0 8-N-l 

f* r-re f> wo A in 

• Type atbd 7 and hit Enter to set 
the baud rate to 1 15200. The 
modem will respond "OK". 

• You can check any of the 
settings by typing the 
command without the parameter. 

• When you've confirmed that the 
settings are correct, type atwr to 
write the settings to the modem's 
flash memory. 

• Disconnect and reconnect at 
115200 baud. 

• Type help. The response should 
be information about the XBee 
Internet Gateway. If not, verify the 
ConenctPort and XBee settings. 

• Type in a web address such as 

http : / /www . google . com/ and 
hit Enter. If you see HTML, you've 
configured the XBee Internet 
Gateway correctly. 

© Make Projects 

Page 7 of 9 

Networked On Air Light 

Step 6 — Set up the Arduino 

• Insert the XBee into the XBee shield and put the XBee shield on the Arduino. 

• Upload the code . 

• Connect the Arduino to the relay board. 

• Using velcro, mount the components inside the panel. 

Step 7 — Connect the power 

• Connect the lamp cord and your 5V 
power adapter to the extension 

• Connect the power to your Arduino. 

• Create a notch in the bottom of the 
wood panel for the extension cord 
so that the panel can sit flush 
against the wall. 

© Make Projects 

Page 8 of 9 

Networked On Air Light 

Step 8 — Finishing Touches 

# Insert red light bulb, replace glass fixture cover. 

# Use press-on letters to spell out "On Air" or whatever you want! 

# Add a hook to the back to mount the light on the wall. 

This document was last generated on 201 2-11 -01 01 :30:25 PM. 

© Make Projects 

Page 9 of 9